// **********************************************************************
//
// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

// Ice version 3.3.0

package CustomerRelationsManagement;

/**
 *
 * @author Administrator
 */
public class DBError extends Ice.UserException
{
    /**
     *
     */
    public DBError()
    {
    }

    /**
     *
     * @param errorCode
     * @param errorText
     */
    public DBError(int errorCode, String errorText)
    {
        this.errorCode = errorCode;
        this.errorText = errorText;
    }

    /**
     *
     * @return
     */
    public String
    ice_name()
    {
        return "CustomerRelationsManagement::DBError";
    }

    /**
     *
     */
    public int errorCode;

    /**
     *
     */
    public String errorText;

    /**
     *
     * @param __os
     */
    public void
    __write(IceInternal.BasicStream __os)
    {
        __os.writeString("::CustomerRelationsManagement::DBError");
        __os.startWriteSlice();
        __os.writeInt(errorCode);
        __os.writeString(errorText);
        __os.endWriteSlice();
    }

    /**
     *
     * @param __is
     * @param __rid
     */
    public void
    __read(IceInternal.BasicStream __is, boolean __rid)
    {
        if(__rid)
        {
            __is.readString();
        }
        __is.startReadSlice();
        errorCode = __is.readInt();
        errorText = __is.readString();
        __is.endReadSlice();
    }

    /**
     *
     * @param __outS
     */
    public void
    __write(Ice.OutputStream __outS)
    {
        Ice.MarshalException ex = new Ice.MarshalException();
        ex.reason = "exception CustomerRelationsManagement::DBError was not generated with stream support";
        throw ex;
    }

    /**
     *
     * @param __inS
     * @param __rid
     */
    public void
    __read(Ice.InputStream __inS, boolean __rid)
    {
        Ice.MarshalException ex = new Ice.MarshalException();
        ex.reason = "exception CustomerRelationsManagement::DBError was not generated with stream support";
        throw ex;
    }
}
